# -*- encoding: utf-8 -*-
import random
import string


def generate_verification_code():
    all_characters = string.ascii_letters + string.digits
    code = ''.join(random.choices(all_characters, k=6))
    return code



if __name__ == "__main__":
    verification_code = generate_verification_code()
    print("验证码：",verification_code)
    password = input("请输入验证码:")
    if password == verification_code:
        print("输入正确")
    else:
        print("输入错误")